package com.abucloud.logbackdemo.service.impl;

import com.abucloud.logbackdemo.dto.LoginUserInfoDTO;
import com.abucloud.logbackdemo.mapper.UserInfoMapper;
import com.abucloud.logbackdemo.service.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author party-abu
 * @Date 2022/5/22 9:13
 */
@Slf4j
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public String userLogin() {

        LoginUserInfoDTO loginUserInfoDTO = new LoginUserInfoDTO();
        loginUserInfoDTO.setPassword("$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2");
        loginUserInfoDTO.setLoginAccount("admin");
        return this.userInfoMapper.selectOne(loginUserInfoDTO);
    }
}
